//
//  JKStarDisplayViewController.m
//  JKStar
//
//  Created by 王冲 on 2018/4/6.
//  Copyright © 2018年 希爱欧科技有限公司. All rights reserved.
//

#import "JKStarDisplayViewController.h"
#import "JKStarDisplayView.h"
@interface JKStarDisplayViewController ()

@property(nonatomic,strong) JKStarDisplayView *jKStarDisplayView;

@end

@implementation JKStarDisplayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"展示星星";
    self.edgesForExtendedLayout = UIRectEdgeNone;
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.jKStarDisplayView.redValue = [@"4.5" floatValue];
    [self.view addSubview:self.jKStarDisplayView];
    
}

-(JKStarDisplayView *)jKStarDisplayView{
    
    if (!_jKStarDisplayView) {
        
        _jKStarDisplayView = [[JKStarDisplayView alloc]initWithFrame:CGRectMake(100, 100, 80, 14)];
    }
    return _jKStarDisplayView;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
